﻿#pragma once
#include "CWndAddParam.h"
#include "CFuncContext.h"
#include "CObjContext.h"


// CWndAddFunc 对话框

class CWndAddFunc : public CDialogEx
{
	DECLARE_DYNAMIC(CWndAddFunc)

public:
	CWndAddFunc(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CWndAddFunc();

	void Init(PCFuncContext val, PCObjContext obj);

	CWndAddParam wndAddParam;
	int nTypeId{};
	PCParamContext pParamContext{};
	PCObjContext _ObjContext{};
	PCFuncContext pFuncReturn{};

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_ADDFUNC };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButton1();
	virtual BOOL OnInitDialog();
	CComboBox m_lstType;
	afx_msg void OnBnClickedOk();
	CString sType;
	CString sName;
	CString sAddress;
	CString sNote;
	CListBox m_lstParam;
};
